package com.feng.picture.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OpenApiConfig {

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("玫瑰图库项目接口文档")
                        .version("1.0")
                        .description("这是一个使用 Knife4j 的 Spring Boot 3 示例")
                        .contact(new Contact().name("我是作者").email("xxx@example.com").url("https://example.com"))
                );
    }
}
